package com.rybbaby.tss.front.tssStudent.service;

import com.rybbaby.tss.core.web.service.IBaseService;
import com.rybbaby.tss.front.tssStudent.entity.StudentImport;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * 导入映射自定义实体类服务(StudentInport)
 * 杨然
 * */
public interface StudentImportService extends IBaseService<StudentImport> {

    /**
     * 客户管理模块 解析数据并导入表
     * 杨然
     * */
    List<Map<String, Object>> stuImport(HttpServletRequest request, String adminUserId) throws Exception;

    /**
     * 导出
     * @param suffix
     * @param headers
     * @param errorsList
     * @param request
     * @param response
     */
    void exportListMap(String suffix, String[] headers, List<Map<String, Object>> errorsList, HttpServletRequest request, HttpServletResponse response) throws IOException;

    /**
     * 预览
     * @param request
     * @return
     */
    List<Map<String,Object>> importPreview(HttpServletRequest request) throws IOException, ParseException;
}
